<html>
	<title>To test the if control in PHP</title>
	<body>
		<?php
			$user_validated = false;
			echo "<h3>If with braces</h3>";
			if($user_validated){
				echo "Welcome!!!";
			}else{
				echo "Invalid credentials";
			}

			echo "<h3>If without braces</h3>";
			if($user_validated):
			echo "Welcome!!!!";
			else:
			echo "Invalid credentials";
			endif;
			
			echo "<h3>If ternary condition</h3>";
		    echo ($user_validated == false) ? "logged in " : "Bad!"; ?>
	</body>
</html>
